import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './App';
import store from './store';

import RelativeTime from 'dayjs/plugin/relativeTime.js';
import dayjs from 'dayjs';
//  导入中文语言包
import 'dayjs/locale/zh-cn.js';
// 中文化
dayjs.locale('zh-cn');
//  继承插件
dayjs.extend(RelativeTime);
ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.querySelector('#root')
);
